package com.xidian.zhiancloud.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelIgnore;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 *  废弃物出库管理
 * @author qzg
 */
@Data
@ExcelTarget("废弃物出库台账")
@TableName(value = "t_waste_warehouse_out")
public class WasteWarehouseOut {
    /**
     *   id
     */
    @ExcelIgnore()
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *   多租户id
     */
    @ExcelIgnore()
    private Long companyId;

    /**
     *   危废物库存id
     */
    @ExcelIgnore()
    private Long wasteId;

    /**
     *   废物流向
     */
    @Excel(name = "废物流向",needMerge = true,orderNum = "8")
    private String wasteGoto;

    /**
     *   出库量
     */
    @ExcelIgnore()
    private BigDecimal outQuantity;

    /**
     *   包装方式
     */
    @Excel(name = "包装",needMerge = true,orderNum = "5")
    private String packing;

    /**
     *   出库日期
     */
    @Excel(name = "出库日期",needMerge = true,orderNum = "9", exportFormat = "yyyy-MM-dd HH:mm:ss")
    private Date outTime;

    /**
     *   对接人名字
     */
    @Excel(name = "对接人",needMerge = true,orderNum = "6")
    private String contactName;

    /**
     *   对接人电话
     */
    @Excel(name = "对接人电话",needMerge = true,orderNum = "7")
    private String contactNumber;

    /**
     *   出库编号
     */
    @Excel(name = "出库编号",needMerge = true,orderNum = "0")
    private String outCode;

    /**
     * 出库人id
     */
    @ExcelIgnore()
    private Long outerId;

}